package com.yc.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yc.entity.Mgoods;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxw
 * @since 2024-11-10
 */
public interface MgoodsMapper extends BaseMapper<Mgoods> {
    default Mgoods selectByGid(int gid) {
        return this.selectById(gid);
    }

     default List<Mgoods> findall(){
         QueryWrapper queryWrapper=new QueryWrapper();

        return this.selectList(queryWrapper);
     }
}
